home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Adobe Graphics & Publishing SDK 1996 December
/
Adobe Graphics & Publishing SDK 1996 December.iso
/
mac
/
Illustrator 6.0 SDK r1 Mac
/
AI Plugin Interface
/
AIPath.h
< prev
next >
Wrap
Text File
|
1995-12-21
|
2KB
|
118 lines
/**
AIPath.h
Copyright (c) 1995 Adobe Systems Incorporated.
All Rights Reserved
Adobe Illustrator 6.0 Path Object Suite.
**/
#ifndef __AIPath__
#define __AIPath__
/*******************************************************************************
**
** Imports
**
**/
#include "AITypes.h"
#include "AIArt.h"
#include "AIFixedMath.h"
#if Macintosh
#ifdef __cplusplus
extern "C" {
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=mac68k
#endif
#if PRAGMA_IMPORT_SUPPORTED
#pragma import on
#endif
#endif
/*******************************************************************************
**
** Constants
**
**/
#define kAIPathSuite "AI Path Suite"
#define kAIPathVersion 2
#define kMaxPathSegments 8191 /* Maximum number of segments in one path */
#define kMaxTextPathSegments 67 /* Maximum number of segments in one text path */
#define kSegmentNotSelected 0
#define kSegmentPointSelected 1
#define kSegmentInSelected 2
#define kSegmentOutSelected 3
#define kSegmentInAndOutSelected 4
#define kTooManySegmentsErr 'SEGM'
/*******************************************************************************
**
** Types
**
**/
typedef struct {
FixedPoint p, in, out;
Boolean corner;
} AIPathSegment;
/*******************************************************************************
**
** Suite
**
**/
typedef struct {
MACPASCAL FXErr (*GetPathSegmentCount) ( AIArtHandle path, short *count );
MACPASCAL FXErr (*SetPathSegmentCount) ( AIArtHandle path, short count );
MACPASCAL FXErr (*GetPathSegments) ( AIArtHandle path, short segNumber, short count, AIPathSegment *segment );
MACPASCAL FXErr (*SetPathSegments) ( AIArtHandle path, short segNumber, short count, AIPathSegment *segment );
MACPASCAL FXErr (*GetPathClosed) ( AIArtHandle path, Boolean *closed );
MACPASCAL FXErr (*SetPathClosed) ( AIArtHandle path, Boolean closed );
MACPASCAL FXErr (*GetPathGuide) ( AIArtHandle path, Boolean *isGuide );
MACPASCAL FXErr (*SetPathGuide) ( AIArtHandle path, Boolean isGuide );
MACPASCAL FXErr (*GetPathSegmentSelected)( AIArtHandle path, short segNumber, short *selected );
MACPASCAL FXErr (*ReversePathSegments) ( AIArtHandle path );
} AIPathSuite;
#if Macintosh
#if PRAGMA_IMPORT_SUPPORTED
#pragma import off
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=reset
#endif
#ifdef __cplusplus
}
#endif
#endif
#endif